-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: handle null y0 values on y log scale rendering #413
Conversation
Codecov Report
@@ Coverage Diff @@
## master #413 +/- ##
=========================================
- Coverage 97.95% 97.85% -0.1%
=========================================
Files 39 39
Lines 2888 2894 +6
Branches 693 700 +7
=========================================
+ Hits 2829 2832 +3
- Misses 52 55 +3
Partials 7 7
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Good catch with that weird looking chart.
## [13.5.2](v13.5.1...v13.5.2) (2019-10-10) ### Bug Fixes * handle null y0 values on y log scale rendering ([#413](#413)) ([5731c10](5731c10))
🎉 This PR is included in version 13.5.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [13.5.2](elastic/elastic-charts@v13.5.1...v13.5.2) (2019-10-10) ### Bug Fixes * handle null y0 values on y log scale rendering ([opensearch-project#413](elastic/elastic-charts#413)) ([e20e9eb](elastic/elastic-charts@e20e9eb))
Summary
The y0 value of each bar is
null
by default if we don't have a y0 value. With a log scale we were not check for that null value, creating an invalid height value for the bars. The same happens with other scale type.The issue (two bars should be displayed):
The fix:
I've also fixed a small issue in a story with a wrong data set
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.src/index.ts
(and stories only import from../src
except for test data & storybook)[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Proper documentation or storybook story was added for features that require explanation or tutorials